package written_examination;

import java.util.*;
//将一句话的单词进行倒置，标点不倒置，例如：I like beijing.变换之后为：beijing. like I.
public class Main_11_22_2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String[] ret = str.split(" ");
        for(int i = ret.length - 1;i >= 0;i--){
            System.out.print(ret[i] + " ");
        }
    }
}
